﻿using Nop.Web.Framework;
using Nop.Web.Framework.Localization;
using Nop.Web.Framework.Mvc;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Nop.Admin.Models.Media
{
    public partial class PictureLinkModel : BaseNopEntityModel, ILocalizedModel<PictureLinkLocalizedModel>, ILocalizedModel
    {
        // Methods
        public PictureLinkModel()
        {
            Locales = new List<PictureLinkLocalizedModel>();
            PicturelinkCollections = new List<SelectListItem>();
        }

        // Properties

        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.CollectionId")]
        public int CollectionId { get; set; }

        [UIHint("Picture"), NopResourceDisplayName("Admin.Media.PictureLink.Fields.Picture")]
        public int PictureId { get; set; }

        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.Alt")]
        public string Alt { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.DisplayOrder")]
        public int DisplayOrder { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.DisplayText"), AllowHtml]
        public string DisplayText { get; set; }
        [NopResourceDisplayName("Admin.Media.Fields.SystemName")]
        public string SystemName { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.Url")]
        public string Url { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.Visible")]
        public bool Visible { get; set; }
        public string ImageUrl { get; set; }

        #region Model Properties

        public IList<PictureLinkLocalizedModel> Locales { get; set; }

        public IList<SelectListItem> PicturelinkCollections { get; set; }

        #endregion

    }

    public partial class PictureLinkLocalizedModel : ILocalizedModelLocal
    {
        public int LanguageId { get; set; }

        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.Alt")]
        public string Alt { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.DisplayText"), AllowHtml]
        public string DisplayText { get; set; }
        [NopResourceDisplayName("Admin.Media.PictureLink.Fields.Url")]
        public string Url { get; set; }
    }

}